package gui.event;

/**
 *	@(#)AttachmentEvent.java
 *
 *	The <code>AttachmentEvent</code> class represents the action when
 *	one draggable label is dropped onto another and this drop is
 *	accepted by both of the labels.
 *
 *	@author Grzegorz Kobiela
 *	@version 1.0 2007/9/10
 */
public class AttachmentEvent
extends java.awt.AWTEvent
{
	/** The location the event was fired at at. */
	private java.awt.Point location;

	/**
	 *	Creates a new <code>AttachmentEvent</code> instance with the
	 *	given source object at the given location.
	 *	@param source the source object
	 *	@param location the location
	 */
	public AttachmentEvent(Object source, java.awt.Point location) {
		super(source, RESERVED_ID_MAX + 1);
		this.location = location;
	}

	/**
	 *	Returns the location.
	 *	@return the location
	 */
	public java.awt.Point getLocation() {
		return location;
	}
}